/**
 * Created with IntelliJ IDEA.
 * Description:
 * User: Microsoft
 * Date: 2022-11-18
 * Time: 15:10
 */
class  Person{
    public String name;
    public int age;

    public void func(){
        System.out.println(name + "吃饭");
    }
    public void show(){
        System.out.println("姓名：" + name + "年龄" + age);
    }
}
public class Test {
    public static void main(String[] args) {
        Person person1 = new Person();
        Person person2 = new Person();
        person1 = person2;
    }
}














